//
//  Global.h
//  hcpro
//
//  Created by 戴旭 on 16/9/15.
//  Copyright © 2016年 hucai.com. All rights reserved.
//

#ifndef Global_h
#define Global_h

/** rgb颜色 */
#define HCColor(r, g, b, a) [UIColor colorWithRed:(r / 255.0) green:(g / 255.0) blue:(b / 255.0) alpha:a]

/** 随机颜色 */
#define HCRandomColor [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1];

/** 默认前景色 [UIColor colorWithRed:(239 / 255.0) green:(61 / 255.0) blue:(56 / 255.0) alpha:1]
*/
#define HCTintColor [UIColor colorWithRed:(252 / 255.0) green:(13 / 255.0) blue:(27 / 255.0) alpha:1]

/** 默认背景色 */
#define HCBGColor HCColor(248, 248, 248, 1)

/** 屏幕宽高 */
#define HCScreenW [UIScreen mainScreen].bounds.size.width
#define HCScreenH [UIScreen mainScreen].bounds.size.height

/** 默认标题字体 */
#define HCDefaultFont [UIFont systemFontOfSize:19]

/** 默认备注字体 */
#define HCSmallFont [UIFont systemFontOfSize:14]

/** 默认间距 */
#define HCMargin 10

/** 侧边栏宽度 */
#define HCSlideMenuW HCScreenW * 0.7

/** 导航栏高度 */
#define HCNavBarHeight 64

/** weakself */
#define WEAKSELF __weak __typeof(&*self)weakSelf = self;

/** BlockKits */
#if !defined(BK_INITIALIZER)
# if __has_attribute(objc_method_family)
#  define BK_INITIALIZER __attribute__((objc_method_family(init)))
# else
#  define BK_INITIALIZER
# endif
#endif

#endif /* Global_h */
